Skip to content

Guard PDF ID scan on unterminated strings - #520

Merged
SimonCropp merged 1 commit into
mainfrom
Guard-PDF-ID-scan-on-unterminated-strings
Jul 14, 2026
Merged

Guard PDF ID scan on unterminated strings#520
SimonCropp merged 1 commit into
mainfrom
Guard-PDF-ID-scan-on-unterminated-strings

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

Prevent index overruns when normalizing truncated /ID entries that end without closing > or ). The normalizer now only advances past terminators when they actually exist, so malformed buffers are zeroed safely up to available bytes. Added regression tests for unterminated hex and literal /ID forms.

Prevent index overruns when normalizing truncated `/ID` entries that end without closing `>` or `)`. The normalizer now only advances past terminators when they actually exist, so malformed buffers are zeroed safely up to available bytes. Added regression tests for unterminated hex and literal `/ID` forms.
@SimonCropp SimonCropp added this to the 3.3.1 milestone Jul 14, 2026
@SimonCropp
SimonCropp merged commit fedbebc into main Jul 14, 2026
6 checks passed
@SimonCropp
SimonCropp deleted the Guard-PDF-ID-scan-on-unterminated-strings branch July 14, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant